package com.qf.controller;

import com.qf.pojo.respVo.BaseResp;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/base")
public class BaseController {

    @Autowired
    UserService userService;

    @RequestMapping("/findUserByToken")
    public BaseResp findUserByToken(HttpServletRequest request){
        return userService.findUserByToken(request);
    }
}
